package edu.nctu.csie.jichang.database.parser;

import java.io.File;
import java.util.List;

import edu.nctu.csie.jichang.database.dbinfo.LoginInfo;
import edu.nctu.csie.jichang.database.model.cell.DBDatabase;


public interface IParser {

	/**
	 * From Connection get DBDatabase
	 * @param pConn Connection
	 * @return DBDatabase
	 * @throws Exception if has error
	 */
	public DBDatabase doParse(List<LoginInfo> pConns);
	
	/**
	 * From File get DBDatabase
	 * @param pFile File
	 * @return DBDatabase
	 * @throws Exception if has error
	 */
	public DBDatabase doParse(File pFile);
	
}
